from selenium.webdriver.common.by import By
import time
from Base import Base
class Page1(Base):
    # 模拟月考4月
    mnyk = (By.XPATH, '/html/body/div/div/section/aside/ul/li[2]/div/span')
    def click_mnyk(self):
        self.click(self.mnyk)
    # 登录Z
    loginz = (By.XPATH, '/html/body/div/div/section/aside/ul/li[2]/ul/li[1]/a')
    def click_loginz(self):
        self.click(self.loginz)
    # 账号
    username = (By.XPATH, '/html/body/div/div/section/section/main/div[1]/div[2]/div[1]/div/input')
    def sendK_username(self,username):
        self.send_keys(self.username,username)
    # 密码
    password = (By.XPATH, '/html/body/div/div/section/section/main/div[1]/div[2]/div[2]/div/input')
    def sendK_pwd(self,pwd):
        self.send_keys(self.password,pwd)
    # 立即登录
    logingo = (By.XPATH, '/html/body/div/div/section/section/main/div[1]/div[2]/button[2]')
    def click_logingo(self):
        self.click(self.logingo)
    # 员工列表
    emptext = (By.XPATH, '//*[@id="emplist"]')
    # 用户登录
    userlogin = (By.XPATH, '/html/body/div[1]/div/section/section/main/div[1]/div[1]/span')